package com.cnc.fd.hiber;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class UploadServer implements Serializable {

    /** identifier field */
    private String serverId;

    /** nullable persistent field */
    private String serverName;

    /** nullable persistent field */
    private String carryCompany;

    /** nullable persistent field */
    private String ip;

    /** nullable persistent field */
    private String bakServer;

    /** nullable persistent field */
    private String password;

    /** persistent field */
    private Integer port;

    /** persistent field */
    private String uploadType;

    /** full constructor */
    public UploadServer(String serverId, String serverName, String carryCompany, String ip, String bakServer, String password, Integer port, String uploadType) {
        this.serverId = serverId;
        this.serverName = serverName;
        this.carryCompany = carryCompany;
        this.ip = ip;
        this.bakServer = bakServer;
        this.password = password;
        this.port = port;
        this.uploadType = uploadType;
    }

    /** default constructor */
    public UploadServer() {
    }

    /** minimal constructor */
    public UploadServer(String serverId, int port, String uploadType) {
        this.serverId = serverId;
        this.port = port;
        this.uploadType = uploadType;
    }

    public String getServerId() {
        return this.serverId;
    }

    public void setServerId(String serverId) {
        this.serverId = serverId;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getCarryCompany() {
        return this.carryCompany;
    }

    public void setCarryCompany(String carryCompany) {
        this.carryCompany = carryCompany;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getBakServer() {
        return this.bakServer;
    }

    public void setBakServer(String bakServer) {
        this.bakServer = bakServer;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

   
    public String getUploadType() {
        return uploadType;
    }

    public void setUploadType(String uploadType) {
        this.uploadType = uploadType;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("serverId", getServerId())
            .toString();
    }

}
